const Service = require('../../../core/service/ApiService');

class CommonSvc extends Service {

    //获取社区列表
    async getCommunityList() {
        const dao = this.service.admin.common.dao;
        return {
            community_list: await dao.getCommunityList()
        }
    }

    //获取小区列表
    async getSubistrictList(com_id) {
        return {
            subdistrict_list: await this.service.admin.common.dao.getSubistrictList(com_id)
        }
    }
}

module.exports = CommonSvc;
